package at.ac.tuwien.isis.infret.ue2.tests;

import static org.junit.Assert.*;

import java.io.File;
import java.util.TreeMap;
import java.util.Vector;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;

import at.ac.tuwien.isis.infret.helper.DocumentContainer;
import at.ac.tuwien.isis.infret.ue2.HtmlOutput;
import at.ac.tuwien.isis.infret.ue2.QueryHandler;

public class HtmlOutputTest {
	
	HtmlOutput test;
	Vector<String> query;
	String distanceFunction = "cosine";
	String featureFiles = "res"+File.separatorChar+
							"tests"+File.separatorChar+
							"test.arff";
	Vector<TreeMap<DocumentContainer,Double>>resultLists;
	@Before
	public void setUp() throws Exception {
		test = new HtmlOutput(
				"output"+File.separatorChar+
				"output.html");
		
		query = new Vector<String>();
		query.add("Iris-setosa/doc1");
		
		QueryHandler setup= new QueryHandler(featureFiles);
		setup.SimilarityFunctionFlag = distanceFunction;
		resultLists = new Vector<TreeMap<DocumentContainer,Double>>();
		resultLists.add(setup.applyQuery(query, 3));
				
	}

	@After
	public void tearDown() throws Exception {
	}

	@Test
	public void testWriteToHtml() {
		Vector<String> passedFeatures = new Vector<String>();
		passedFeatures.add(this.featureFiles);
		//test.writeToHtml(resultLists, query, distanceFunction, passedFeatures);
	}

}
